﻿@using Landrys.ThePostOak_EpiServer.Models.Media
@using EPiServer
@using EPiServer.ServiceLocation
@using EPiServer.Web.Mvc.Html
@model EPiServer.Core.ContentReference


@{
    var df = ServiceLocator.Current.GetInstance<IContentRepository>();
    ImageFile image = null;
    if (Model != null)
    {
        image = df.Get<ImageFile>(Model);
    }
}

@if (image != null)
{
    <img src="@Url.ContentUrl(Model)" title="@(image.Title ?? string.Empty)" alt="@(image.AlternateText ?? string.Empty)" longdesc="@(image.Description ?? string.Empty)" copy="@(image.Copyright ?? string.Empty)" />
}